package net.sourceforge.openclixml.util;

import java.io.PrintWriter;
import java.io.StringWriter;
import java.io.Writer;


public class ExceptionUtil {
    public static final String EATENEXCEPTION = "Eaten/Ignored/Consumed the following Exception: ";

    public static String trowableToString(final Throwable aThrowable) {
        final Writer result = new StringWriter();
        final PrintWriter printWriter = new PrintWriter(result);
        aThrowable.printStackTrace(printWriter);

        return result.toString();
    }
}
